package com.bitbakery.plugin.lisp.lang;

import com.bitbakery.plugin.lisp.LispIcons;
import com.intellij.openapi.fileTypes.LanguageFileType;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/**
 * Contains information about Common Lisp file types (*.lisp and *.lisp)
 */
public class LispFileType extends LanguageFileType {
    public static final LispLanguage LISP = new LispLanguage();

    public LispFileType() {
        super(LISP);
    }

    @NotNull
    @NonNls
    public String getName() {
        return "Common Lisp";
    }

    @NotNull
    public String getDescription() {
        return "Common Lisp source file";
    }

    @NotNull
    @NonNls
    public String getDefaultExtension() {
        return "lisp";
    }

    @Nullable
    public Icon getIcon() {
        return LispIcons.LISP_FILE_ICON;
    }
}
